package com.maybach.core.template.impl;

import com.maybach.core.template.ITemplate;
import com.maybach.core.template.TemplateFactory;
import org.springframework.beans.factory.InitializingBean;

import java.util.Map;

/**
 * Created by houenxun on 16/3/7.
 */
public abstract class AbstractTemplate  implements ITemplate, InitializingBean {

    @Override
    public boolean checkTemplete() {
        return true;
    }

    @Override
    public boolean checkParams(Map<String, Object> params) {
        return true;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        TemplateFactory.register(this);
    }
}
